const TableTestModel = require('../model/Tablereport');

class TableService {

  async getListByFilter( args ){
    return  await TableTestModel.getDataByFilter(args);
  }
  async getCountByFilter( args ){
    return await TableTestModel.getCountByFilter(args);
  }

  async getDeviceTypeName( args ){
    return await TableTestModel.getDeviceTypeName(args);
  }

  async updateData( args ){
    return await TableTestModel.updateData(args);
  }
  async delData( args ){
    return await TableTestModel.delData(args);
  }
  async getPie( args ){
    return await TableTestModel.getPie(args);
  }


  async getYearListByFilter( args ){
    return  await TableTestModel.getYearListByFilter(args);
  }
  async getYearCountByFilter( args ){
    return await TableTestModel.getYearCountByFilter(args);
  }

}

module.exports = new TableService();
